package cevent.source.cloudcenter.server.dto;/**
 * Created by Cevent on 2021/5/16.
 */

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.HashSet;
import java.util.List;

/**
 * @author cevent
 * @description 员工登录DTO:不传入密码
 * @date 2021/5/16 21:18
 */
public class EmployeeLoginDto {
    //唯一ID
    private String uniId;
    //姓名
    private String name;
    //昵称
    private String nickName;
    //登录名
    private String loginName;

    //部门ID
    private String depId;
    //职位
    private String position;
    //头像
    private String icon;
    //座右铭
    private String motto;
    //简介
    private String intro;
    //关联文件ID
    private String fileId;
    //创建时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    //修改时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    //登录标识token：（session缓存和redis通用）
    private String token;

    //前端获取资源
    private List<ResourcesDto> resourcesDtos;
    //所有资源中的请求，用于后端请求拦截
    private HashSet<String> requests;

    public String getUniId(){
        return  uniId;
    }
    public void setUniId(String uniId){
        this.uniId=uniId;
    }
    public String getName(){
        return  name;
    }
    public void setName(String name){
        this.name=name;
    }
    public String getNickName(){
        return  nickName;
    }
    public void setNickName(String nickName){
        this.nickName=nickName;
    }
    public String getLoginName(){
        return  loginName;
    }
    public void setLoginName(String loginName){
        this.loginName=loginName;
    }
    public String getDepId(){
        return  depId;
    }
    public void setDepId(String depId){
        this.depId=depId;
    }
    public String getPosition(){
        return  position;
    }
    public void setPosition(String position){
        this.position=position;
    }
    public String getIcon(){
        return  icon;
    }
    public void setIcon(String icon){
        this.icon=icon;
    }
    public String getMotto(){
        return  motto;
    }
    public void setMotto(String motto){
        this.motto=motto;
    }
    public String getIntro(){
        return  intro;
    }
    public void setIntro(String intro){
        this.intro=intro;
    }
    public String getFileId(){
        return  fileId;
    }
    public void setFileId(String fileId){
        this.fileId=fileId;
    }
    public Date getCreateTime(){
        return  createTime;
    }
    public void setCreateTime(Date createTime){
        this.createTime=createTime;
    }
    public Date getUpdateTime(){
        return  updateTime;
    }
    public void setUpdateTime(Date updateTime){
        this.updateTime=updateTime;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public List<ResourcesDto> getResourcesDtos() {
        return resourcesDtos;
    }

    public void setResourcesDtos(List<ResourcesDto> resourcesDtos) {
        this.resourcesDtos = resourcesDtos;
    }

    public HashSet<String> getRequests() {
        return requests;
    }

    public void setRequests(HashSet<String> requests) {
        this.requests = requests;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("EmployeeLoginDto{");
        sb.append("uniId='").append(uniId).append('\'');
        sb.append(", name='").append(name).append('\'');
        sb.append(", nickName='").append(nickName).append('\'');
        sb.append(", loginName='").append(loginName).append('\'');
        sb.append(", depId='").append(depId).append('\'');
        sb.append(", position='").append(position).append('\'');
        sb.append(", icon='").append(icon).append('\'');
        sb.append(", motto='").append(motto).append('\'');
        sb.append(", intro='").append(intro).append('\'');
        sb.append(", fileId='").append(fileId).append('\'');
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", token='").append(token).append('\'');
        sb.append(", resourcesDtos=").append(resourcesDtos);
        sb.append(", requests=").append(requests);
        sb.append('}');
        return sb.toString();
    }
}
